﻿<li class="collapsable" id="li0">
    <input id="cbx0" type="checkbox" class="cbxFunctionParent" style="border-color:#FFFFFF;" /><span class="spNameFunctionParent"
        style="cursor: pointer; font-weight: bold">Menu gốc</span> 
     [<a style="font-style: italic" id="aAddFunction" href="javascript:;">Thêm</a>]
    {#if ($T.TotalRecord > 0)}
    <ul>
        {#foreach $T.Items as functionParrent}
        <li class="collapsable" id="li{$T.functionParrent.Info.Id}" style="padding-bottom: 5px;
            padding-left: 20px; padding-top: 5px">
            <input id="cbx{$T.functionParrent.Info.Id}" type="checkbox" class="cbxFunctionParent" style="border-color:#FFFFFF;"/><span
                class="spNameFunctionParent" style="cursor: pointer; font-weight: bold">{$T.functionParrent.Info.Name}</span>
            [<a style="font-style: italic" id="aAddFunction" href="javascript:;">Thêm</a>]
            [<a style="font-style: italic" id="aEditFunction" href="javascript:;">Sửa</a>]
            [<a style="font-style: italic" id="aDeleteFunction" href="javascript:;">Xóa</a>]
           
            <ul class="visible" id="ul{$T.functionParrent.Info.Id}">
                {#foreach $T.functionParrent.Items as menu}
                <li id="li{$T.menu.Id}" style="padding-top: 5px; padding-left: 20px">
                      <input type="checkbox" class="cbxFunction" id="cbx{$T.menu.Id}" style="border-color:#FFFFFF;"/>
                      <span>{$T.menu.Name}</span>
                      [<a style="font-style: italic" id="aEditFunction" href="javascript:;">Sửa</a>]
                      [<a style="font-style: italic" id="aDeleteFunction" href="javascript:;">Xóa</a>]
                </li>
                {#/for}
            </ul>
        </li>
        {#/for}</ul>
        {#/if}
</li>